package com.numberone.master.modules.paytask.entity;

import org.hibernate.validator.constraints.Length;

import com.numberone.master.common.persistence.DataEntity;

/**
 * 充值明细管理Entity
 * @author ck
 * @version 2018-03-07
 */
public class PaytaskDetail extends DataEntity<PaytaskDetail> {
	
	private static final long serialVersionUID = 1L;
	private String taskId;		// 任务id
	private String cardId;		// sim卡id
	private Long amount;		// 充值金额
	
	public PaytaskDetail() {
		super();
	}

	public PaytaskDetail(String id){
		super(id);
	}

	@Length(min=0, max=20, message="任务id长度必须介于 0 和 20 之间")
	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	
	@Length(min=0, max=20, message="sim卡id长度必须介于 0 和 20 之间")
	public String getCardId() {
		return cardId;
	}

	public void setCardId(String cardId) {
		this.cardId = cardId;
	}
	
	public Long getAmount() {
		return amount;
	}

	public void setAmount(Long amount) {
		this.amount = amount;
	}
	
}